﻿using System.Text.RegularExpressions;

namespace CNav.Business.Validation
{
    public class ValidatorUtils
    {
        public static bool IsPhone(string phone)
        {
            if (string.IsNullOrEmpty(phone)) return false;

            var reg = new Regex(@"^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$");
            return reg.Match(phone).Success;
        }
    }
}
